const flag = false
function App() {
  return (
    <div className="App">
      <div>{flag && <span>我是真的</span>}</div>
      <div>{flag ? <span>我是真的</span>: <span>我是假的</span>} </div>
    </div>
  );
}

export default App;

















